<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', '\App\Http\Controllers\IndexController@index');

Route::get('/home', function () {
    return view('welcome');
});

Route::get('/login','App\Http\Controllers\Auth\LoginController@showLoginForm')->name('show.login');
Route::post('/login','App\Http\Controllers\Auth\LoginController@login')->name('login');

Route::get('/register', 'App\Http\Controllers\Auth\RegisterController@showRegistrationForm' )->name('show.register');
Route::post('/register', 'App\Http\Controllers\Auth\RegisterController@register' )->name('register');

Route::get('/sendcode', '\MKing\SmsCode\Controller\SmsCodeController@send')->name('sms.code');

Route::post('/media/upload', 'App\Http\Controllers\Common\MediaController@upload')->name('media-upload');

